{
语法百题 解题报告：
 http://git.oschina.net/et0662/sznoi-grammar/ 
}

const
	max=200;
var
	n:string;
	a,b,c:array[1..max] of 0..9;
	lena,lenb,lenc, i, x:integer;
begin
	readln(n);
	lena:=length(n);
	for i:=1 to lena do
		a[lena-i+1]:=ord(n[i])-ord('0');
	readln(n);
	lenb:=length(n);
	for i:=1 to lenb do
		b[lenb-i+1]:=ord(n[i])-ord('0');
	i:=1;
	x:=0;
	while (i<=lena) or (i<=lenb) do
	begin
		c[i]:=a[i]+b[i]+x;
		x:=c[i] div 10;
		c[i]:=c[i] mod 10;
		inc(i);
	end;

	if(x>0)then
	begin
		lenc:=i; c[i]:=x;
	end
	else
		lenc:=i-1;
	for i:= lenc downto 1 do
		write(c[i]);
end.
